/**
 * 
 */
package com.thor.palmmall.rest.elecharges;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.thor.commons.rs.cxf.ContentType;

@Path("/payment")
public interface APaymentCallBackService {

  @POST
  @Path(value = "/alipayCallBack")
  @Consumes({
      MediaType.APPLICATION_FORM_URLENCODED })
  @Produces({
      ContentType.APPLICATION_JSON_UTF_8 })
  public String alipayCallBack(String request);

  @POST
  @Path(value = "/weChatCallBack")
  @Consumes({
      MediaType.TEXT_XML })
  @Produces({
      ContentType.APPLICATION_JSON_UTF_8 })
  public String weChatCallBack(String request);

  @POST
  @Path(value = "/unionPayCallBack")
  @Consumes({
      MediaType.APPLICATION_FORM_URLENCODED })
  @Produces({
      ContentType.APPLICATION_JSON_UTF_8 })
  public String unionPayCallBack(String response);

}
